widget: Simplify adjust_allocation()
authorBenjamin Otte <otte@redhat.com>
Sat, 22 Feb 2020 04:46:58 +0000 (05:46 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 22 Feb 2020 06:33:40 +0000 (07:33 +0100)
commit6f73a750a7ae1ee105a6b24a71033b6e3f05318b
tree7e97e5fbe46c36e1344babc605d7ff799ce1bb9a
parent4128ee88b05470cdfc337697a309f9c8594c8602
widget: Simplify adjust_allocation()

And in particular, only do it if the widget doesn't use ALIGN_FILL.

This avoids lots of measuring in the common case and speeds up
size_allocate() by about 25%.

And because size_allocate() is the bottleneck in the fishbowl, this also
gets ~25% more fishies.
gtk/gtkwidget.c